import requests

# 方法一：
# resp = requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html",
#              params={"q":"iphone"})

# 方法二：
resp = requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html?q=iphone")
# 查询响应结果
print(resp.text)